using System;
using System.Collections.Generic;
using System.Text;
using ProjectBase.Data;
using Clanta.Core.DataInterfaces;
using Clanta.Core.Domain;
using NHibernate.Expression;

namespace Clanta.Data
{
    public class ConferenceDao : AbstractNHibernateDao<Conference, long>, IConferenceDao
    {
        public ConferenceDao(string sessionFactoryConfigPath)
            : base(sessionFactoryConfigPath)
        {
        }

        public List<Conference> GetConferencesByCustomerId(long customerId)
        {
            return GetByCriteria(new EqExpression("Customer.Id", customerId));
        }
    }
}
